package net.sf.google.talk.eclipse.preferences;

import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
import org.eclipse.jface.preference.IPreferenceStore;

import net.sf.google.talk.eclipse.EclipsePlugin;

/**
 * Class used to initialize default preference values.
 */
public class PreferenceInitializer extends AbstractPreferenceInitializer {

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences()
	 */
	public void initializeDefaultPreferences() {
		IPreferenceStore store = EclipsePlugin.getDefault()
				.getPreferenceStore();
//		store.setDefault(PreferenceConstants.P_BOOLEAN, true);
//		store.setDefault(PreferenceConstants.P_CHOICE, "choice2");
		store.setDefault(GTalkPreferencePage.USERNAME, "");
		store.setDefault(GTalkPreferencePage.PASSWORD, "");
		store.setDefault(GTalkPreferencePage.AUTO_CONNECT, false);
		store.setDefault(GTalkPreferencePage.AUTO_ACCEPT_FILES, true);
		store.setDefault(GTalkPreferencePage.INCOMING_DIR, System.getProperties().getProperty("java.io.tmpdir"));
        store.setDefault(GTalkPreferencePage.SOCKS_PROXY_USE, false);
        store.setDefault(GTalkPreferencePage.SOCKS_PROXY_HOST, "");
        store.setDefault(GTalkPreferencePage.SOCKS_PROXY_PORT, 0);
	}

}
